package ModelLayer;

import java.sql.Timestamp;

public class RentalPayment extends DateHelper {

	private int paymentId;
	private double amount;
	private Tenant tenant;
	private Apartment apartment;

	public RentalPayment() {}
	
	
	public RentalPayment(Timestamp date, double amount, Apartment apartment, Tenant tenant) {
		super(date);
		this.amount = amount;
		this.apartment = apartment;
		this.tenant = tenant;
	}
	
	public RentalPayment(int paymentId, Timestamp date, double amount, Apartment apartment) {
		super(date);
		this.paymentId = paymentId;
		this.date = date;
		this.amount = amount;
		this.apartment = apartment;
	}

	
	
	public int getPaymentId() {
		return paymentId;
	}

	public void setPaymentId(int paymentId) {
		this.paymentId = paymentId;
	}
	
	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}

	public Tenant getTenant() {
		return tenant;
	}

	public void setTenant(Tenant tenant) {
		this.tenant = tenant;
	}

	public Apartment getApartment() {
		return apartment;
	}

	public void setApartment(Apartment apartment) {
		this.apartment = apartment;
	}

}
